package com.example.springbootserve.service;

import com.example.springbootserve.controller.Request.BaseRquest;
import com.example.springbootserve.entity.Book;
import com.example.springbootserve.entity.Borrow;
import com.example.springbootserve.entity.Retur;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IBorrowService {
    List<Borrow> list();

    PageInfo<Borrow> page(BaseRquest baseRquest);

    void save(Borrow obj);


    PageInfo<Retur> pageRetur(BaseRquest baseRquest);

    void saveRetur(Retur obj);


    Borrow getById(Integer id);

    void update(Borrow obj);

    void deleteById(Integer id);

    void deleteReturById(Integer id);


    Object getCountByTimeRange(String timeRange);
}
